add Entry
Adds a new journal entry with the provided title and content.
This method creates a new JournalEntry object with the given title and content, and assigns a new UUID as the entry ID. The entry is then added to the repository.
Parameters
title
The title of the journal entry.
content
The content of the journal entry.
Adds or updates an existing journal entry.
If the provided JournalEntry has an ID of "-1" (indicating it is a new entry), a new UUID is assigned to the entry. It also ensures the creation time is set. This entry is then passed to the repository to be added.
Parameters
entry
The JournalEntry object to be added or updated.